Prepare for syslog analysis

What to do

Before the test

To be able to analyse the syslog during and after the test some preparation has to be done before the test starts. This can be done in a number of ways, for example:

During the test

Check now and then if any messages has been received.

After the test

Check all messages that arrived during the test case. This can be done in a number of ways, for example:

Note

I don't know which messages to look for or which to ignore. Maybe we can mention some examples here when we have used the syslog for a while.

Information

The syslog is a function where messages are sent from the software on the processors to a file on the IO processors. It is up to the design person to decide what and when something shall be sent to the syslog. So the use of a message can be of different level.

That syslog is stored in the file /opt/telorb/syslog/ on both IO Processors.

When do a time stamp arrive

The syslog contain time stamp messages which arrives when:
  1. When a message should be sent and it has passed more than 10 seconds since the last message was sent.
  2. If 20 messages have been sent without a time stamp message has been sent.

Time stamp information

A time stamp messages which can look like:

TelORB: Mon Jan 1 01:00:45 1990, Host: Tue Mar 20 18:38:48 2001

The first entry (TelORB) is the time in the TelORB system when the time stamp was sent from the system.

The other entry (Host) is the time on the IO processor when the time stamp was stored in the file.

Message information

A messages in the syslog can look like this:

2 [ +41] IPC: Established link through Ethernet B to [2.1.5]

The first entry (2) is the number of the processor that generated the message.

Next entry ([ +41]) is a time stamp when the message was sent from the processor, in this case was it sent 41 ms after the last time stamp message.

The last entry (IPC: Est...) is the message itself.

Debug levels

Each message has a debug level. This is used to filter how much and what type of messages that are sent to the syslog file. The level is not showed in the message printout. Level 0 to 6 should be messages that is understandable for everyone. Level 7 is for the design person only. See the document "TelORB Configuration Parameters" for more information about the different levels.

The level can be set in two different ways:

Prepare the syslog before the test start

Check the TelORB clock by:
  1. Open the TelORB Manager, "Processors" sheet.
  2. Under the heading "Clock Configuration", check the Local time.

Store all messages sent to the syslog in an other file by:

  1. Login to IO Processor 1 or 2.
  2. Give the following command:
    tail -f /opt/telorb/syslog > filename

Close this window